import request from '@/utils/request'

// 查询巡查任务信息列表
export function listInspectionTask(query) {
  return request({
    url: '/smartHighway/inspectionTask/list',
    method: 'get',
    params: query
  })
}

// 查询巡查任务信息详细
export function getInspectionTask(taskId) {
  return request({
    url: '/smartHighway/inspectionTask/' + taskId,
    method: 'get'
  })
}

// 新增巡查任务信息
export function addInspectionTask(data) {
  return request({
    url: '/smartHighway/inspectionTask',
    method: 'post',
    data: data
  })
}

// 修改巡查任务信息
export function updateInspectionTask(data) {
  return request({
    url: '/smartHighway/inspectionTask',
    method: 'put',
    data: data
  })
}

// 删除巡查任务信息
export function delInspectionTask(taskId) {
  return request({
    url: '/smartHighway/inspectionTask/' + taskId,
    method: 'delete'
  })
}
